﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace CluelessGame
{
    /// <summary>
    /// Interaction logic for NotebookScreen.xaml
    /// </summary>
    public partial class NotebookScreen : Window
    {
        private bool _forceClose = false;

        public NotebookScreen()
        {
            InitializeComponent();
        }

        private void Window_Closing_1(object sender, System.ComponentModel.CancelEventArgs e)
        {
            if (!_forceClose)
            {
                Hide();
                e.Cancel = true;
            }
        }

        public void ForceClose()
        {
            _forceClose = true;
            Close();
        }
    }
}
